package com.findyou.headline.service;

import com.findyou.headline.pojo.NewsHeadline;
import com.findyou.headline.pojo.vo.HeadlineDetailVo;
import com.findyou.headline.pojo.vo.HeadlineQueryVo;

import java.util.Map;

public interface NewsHeadlineService {
    /**
     *
     * @param headlineQueryVo
     * @return
     */
    Map findPage(HeadlineQueryVo headlineQueryVo);

    /**
     *
     * @param hid
     * @return
     */
    HeadlineDetailVo findHeadlineDetail(int hid);

    /**
     * 增加新的文章的
     * @param newsHeadline
     */
    void addNewsHeadline(NewsHeadline newsHeadline);

    /**
     *
     * @param hid
     * @return
     */
    NewsHeadline findByHid(int hid);

    /**
     *
     * @param newsHeadline
     */
    void update(NewsHeadline newsHeadline);

    /**
     *
     * @param hid
     */
    void removeByHid(int hid);
}
